{
  const adom = document.querySelector("nav>a");
  const uldom = document.querySelector("nav>ul");
  adom.addEventListener("click",function(event){
    uldom.classList.toggle("open");
  });
  const secondadom = document.querySelector("nav>ul>li:nth-child(3)>a");
  const seconduldom = document.querySelector("nav>ul>li>ul");
  secondadom.addEventListener("click",function(event){
    seconduldom.classList.toggle("open");
  });
  const thirdadom = document.querySelector("nav>ul>li>ul>li:nth-child(1)>a");
  const thirduldom = document.querySelector("nav>ul>li>ul>li>ul");
  thirdadom.addEventListener("click",function(event){
    thirduldom.classList.toggle("open");
  });
}
